package qldc.pm.tienan.searchcontainer;

import java.text.SimpleDateFormat;

import javax.portlet.PortletRequest;

import qldc.pm.tienan.constants.TienAnConstants;

import com.liferay.portal.kernel.util.ParamUtil;

public class TienAnCanXoaAnTichSearchTerms extends TienAnCanXoaAnTichDisplayTerms{

	public TienAnCanXoaAnTichSearchTerms(PortletRequest portletRequest) {
		super(portletRequest);
		SimpleDateFormat dateFormat = new SimpleDateFormat(TienAnConstants.DATE_PATTERN);
		tuNgayXoaAnTich = ParamUtil.getDate(portletRequest, TU_NGAY_XOA_AN_TICH, dateFormat,
				null);
		denNgayXoaAnTich = ParamUtil.getDate(portletRequest, DEN_NGAY_XOA_AN_TICH,
				dateFormat, null);
		tuNgayThongKe = ParamUtil.getDate(portletRequest, TU_NGAY_THONG_KE, dateFormat,
				null);
		denNgayThongKe = ParamUtil.getDate(portletRequest, DEN_NGAY_THONG_KE,
				dateFormat, null);
		tuNgayToaAn = ParamUtil.getDate(portletRequest, TU_NGAY_TOA_AN, dateFormat,
				null);
		denNgayToaAn = ParamUtil.getDate(portletRequest, DEN_NGAY_TOA_AN,
				dateFormat, null);
		quanHuyenId = ParamUtil.getLong(portletRequest, QUAN_HUYEN_ID);
		phuongXaId = ParamUtil.getLong(portletRequest, PHUONG_XA_ID);
		tinhId = ParamUtil.getLong(portletRequest, TINH_ID);
		trangThai = ParamUtil.getInteger(portletRequest, TRANG_THAI);
	}
	

}
